package cn.zktr.Personnel.controllers.tantiantian;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;

import cn.zktr.Personnel.model.dao.tantiantian.SlyPjtDao;
import cn.zktr.Personnel.model.pojos.PerSlySet;
import cn.zktr.Personnel.model.service.tantiantian.SlySetService;

@Controller
public class SalaryController {
	
	/**
	 * 薪资套帐
	 */
	@Autowired
	private SlySetService slyser;
	
	/**
	 * 套帐项目
	 */
	@Autowired
	private SlyPjtDao pgjDao;
	

/*	//薪资发放
	@RequestMapping("ttt/Salarypayment")
	public void Salarypayment(){
		
	}*/
	//培训课程
/*	@RequestMapping("ttt/TrainingCourse")
	public void TrainingCourse(){
			
	}*/

	//培训项目TrainingProject
	@RequestMapping("ttt/training-project")
	public void TrainingProject(){
				
	}
	//我的
	@RequestMapping("ttt/my-salay")
	public void mysalay(){
				
	}
/*	//新增培训项目AddTrainingProject
	@RequestMapping("ttt/add-training-project")
	public void AddTrainingProject(){
				
	}*/
	//培训结果表
	@RequestMapping("ttt/training-results")
	public void TrainingResults(){
				
	}
/*	//社保项目
	@RequestMapping("ttt/SocialSecurity")
	public void SocialSecurity(){
				
	}*/
	/*//社保套账
	@RequestMapping("ttt/SocialSecurityAccount")
	public void SocialSecurityAccount(){
					
	}*/
	//薪资套账表格
	@RequestMapping("SalaryAccounttable")
	@ResponseBody
	public Map<String,Object> SalaryAccounttable(int page,int rows){
		Map<String,Object> map = new HashMap();
		//先分页
		Page<Object> pg = PageHelper.startPage(page, rows);
		List<Object> list = null;
		//总记录
		map.put("total", pg.getTotal());
		//页内容
		map.put("rows", list);
		return  map;
	}
	
	//薪资发放表格
	@RequestMapping("Salarypaymenttable")
	@ResponseBody
	public Map<String,Object> Salarypaymenttable(int page,int rows){
		Map<String,Object> map = new HashMap();
		//先分页
		Page<Object> pg = PageHelper.startPage(page, rows);
		List<Object> list = null;
		//总记录
		map.put("total", pg.getTotal());
		//页内容
		map.put("rows", list);
		return  map;
	}

	//套账项目表格
/*		@RequestMapping("addAccount_xiangmutable")
		@ResponseBody
		public Map<String,Object> addAccount_xiangmutable(int page,int rows){
			Map<String,Object> map = new HashMap();
			//先分页
			Page<Object> pg = PageHelper.startPage(page, rows);
			List<Object> list = null;
			//总记录
			map.put("total", pg.getTotal());
			//页内容
			map.put("rows", list);
			return  map;
		}*/
		//培训课程表格
		@RequestMapping("TrainingCoursetable")
		@ResponseBody
		public Map<String,Object> TrainingCoursetable(int page,int rows){
			Map<String,Object> map = new HashMap();
			//先分页
			Page<Object> pg = PageHelper.startPage(page, rows);
			List<Object> list = null;
			//总记录
			map.put("total", pg.getTotal());
			//页内容
			map.put("rows", list);
			return  map;
		}
		//培训计划表格
		@RequestMapping("TrainingPlantable")
		@ResponseBody
		public Map<String,Object> TrainingPlantable(int page,int rows){
			Map<String,Object> map = new HashMap();
			//先分页
			Page<Object> pg = PageHelper.startPage(page, rows);
			List<Object> list = null;
			//总记录
			map.put("total", pg.getTotal());
			//页内容
			map.put("rows", list);
			return  map;
		}
		//培训项目表格TrainingProjectable
		@RequestMapping("TrainingProjectable")
		@ResponseBody
		public Map<String,Object> TrainingProjectable(int page,int rows){
			Map<String,Object> map = new HashMap();
			//先分页
			Page<Object> pg = PageHelper.startPage(page, rows);
			List<Object> list = null;
			//总记录
			map.put("total", pg.getTotal());
			//页内容
			map.put("rows", list);
			return  map;
		}
}
